<?php include 'header.php';?>
<?php include 'sidebar.php'?>
<?php include 'content.php';?>
<?php 
$id = $_REQUEST["forgetid"];
$keyword = $_REQUEST["forgetkey"];

$conn = mysql_connect("localhost", "root", "643313") or die(mysql_error());
mysql_select_db("regist_sys");

$sql_forget = "SELECT * FROM account WHERE id='$id' AND keyword='$keyword'";
$result_forget = mysql_query($sql_forget, $conn) or die(mysql_error());

if ($row = mysql_fetch_assoc($result_forget)) {
	$forget_pwd = $row["password"];
	echo <<< HERE
<div id="footer"></div>
<div id="fade"
	class="black_overlay" style="display: block"></div>
<div id="light" class="white_content" style="display: block">	
	Your password is: $forget_pwd <a href="javascript:void(0)"
		onclick="document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'"><font
		color=orange>Close</font> </a>
</div>
HERE;
} else {
	
}
?>